<template>
	<view class="newbox" @click="touch">
			<uni-list>
				<uni-list-item :title="title" :note="content"></uni-list-item>	
			</uni-list>
	</view>
</template>

<script>
	export default {
		name:"news",
		props:{
			title:String,
			author:String,
			author_img:String,
			content:String
		},
		data() {
			return {
				
			};
		},
		methods:{
			touch(){
				uni.navigateTo({
					url:`/pages/news/news?title=${this.title}&content=${this.content}&author_img=${this.author_img}&author=${this.author}`
				})
			}
		}
	}
</script>

<style>
	.newbox{
		/* margin: 70px auto; */
		height: 120px;
	}

</style>